<%-- 
    Document   : modificarSeleccion
    Created on : 28/06/2014, 16:52:57
    Author     : Rodriguez
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
        <title>Selección Tarea Modificar</title>
    </head>
    <body>
        <div align="center">
            <h1>Gestión de Tareas - Modificar</h1>
            <hr width="80%">
            <logic:empty name="listaTareas">
                <p>No hay tareas para modificar.</p>
            </logic:empty>
            <logic:notEmpty name="listaTareas">
            <p>Seleccione qué tarea desea modificar:</p>
            <html:form action="/modificar">
                <html:select property="idTarea">
                    <html:optionsCollection name="listaTareas" label="descripcion" value="id"></html:optionsCollection>
                </html:select>
                <br><br>
                <button type="submit" class="btn btn-primary center-block">Modificar</button>
            </html:form>
            </logic:notEmpty>
                <br>
            <form action="mostrarTareas.do">
                <input type="submit" class="btn btn-info" value="Volver">
            </form>
        </div>
    </body>
</html>